import 'package:taonile/generated/json/base/json_convert_content.dart';
import 'package:taonile/entity/support_bank_entity.dart';

SupportBankEntity $SupportBankEntityFromJson(Map<String, dynamic> json) {
	final SupportBankEntity supportBankEntity = SupportBankEntity();
	final int? code = jsonConvert.convert<int>(json['code']);
	if (code != null) {
		supportBankEntity.code = code;
	}
	final String? msg = jsonConvert.convert<String>(json['msg']);
	if (msg != null) {
		supportBankEntity.msg = msg;
	}
	final List<SupportBankData>? data = jsonConvert.convertListNotNull<SupportBankData>(json['data']);
	if (data != null) {
		supportBankEntity.data = data;
	}
	return supportBankEntity;
}

Map<String, dynamic> $SupportBankEntityToJson(SupportBankEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['code'] = entity.code;
	data['msg'] = entity.msg;
	data['data'] =  entity.data.map((v) => v.toJson()).toList();
	return data;
}

SupportBankData $SupportBankDataFromJson(Map<String, dynamic> json) {
	final SupportBankData supportBankData = SupportBankData();
	final String? id = jsonConvert.convert<String>(json['id']);
	if (id != null) {
		supportBankData.id = id;
	}
	final String? name = jsonConvert.convert<String>(json['name']);
	if (name != null) {
		supportBankData.name = name;
	}
	return supportBankData;
}

Map<String, dynamic> $SupportBankDataToJson(SupportBankData entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['id'] = entity.id;
	data['name'] = entity.name;
	return data;
}